home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 1 / MF_UK_160_1.iso / pc / DiscContent / FullSoftware / Amapi61MacEn / Amapi 3D 6.1 Installer / 3SPACE / FreezeBehavior.js < prev    next >
Encoding:
Text File  |  2001-02-20  |  754 b   |  42 lines  |  [AMAS/AMAP]

  1. // -* FreezeBehavior.js *-
  2. //
  3. // Name: Freeze behavior
  4. // Description: 
  5. // Author:
  6. // Version: $Id: FreezeBehavior.js,v 1.1 2000/12/21 15:03:56 consumer Exp $
  7. //
  8.  
  9. function FreezeBehavior()
  10. {
  11.   // No need for an object with this behavior.
  12. }
  13.  
  14. function FreezeBehaviorStart(solidName)
  15. {
  16. //  var pos = TSMakeStringFromPoint(TSSolidGetPosition(solidName));
  17.   TSUpdateNodeAttribute(solidName, 'fixed', '1');
  18. //  TSSolidSetPosition(pos);
  19. }
  20.  
  21. function FreezeBehaviorStop()
  22. {
  23. }
  24.  
  25. //
  26. // Event functions
  27. //
  28.  
  29. function FreezeBehaviorStartEvent(obj, event)
  30. {
  31.   var targetSolid = TSGetExtraParam(event, 'targetSolid');
  32.  
  33.   if (targetSolid == "")
  34.     FreezeBehaviorStart(obj);
  35.   else
  36.     FreezeBehaviorStart(targetSolid);
  37. }
  38.  
  39. function FreezeBehaviorStopEvent(obj, event)
  40. {
  41. }
  42.